package com.agile.springboot.utils;

import java.util.UUID;

/**
 * Created by myz on 2017/7/12.
 */
public class UUIDUtil {

    /**
     *获取一个UUID
     */
    public static String getOneUUID(){
        //获取UUID
        String str = UUID.randomUUID().toString();
        //去掉“-”符号
        return str.substring(0,8)+str.substring(9,13)+str.substring(14,18)+str.substring(19,23)+str.substring(24);
    }
}
